//
//  SplashView.swift
//  Chatup
//
//  Created by op on 2023/10/21.
//

import SwiftUI

struct SplashView: View {
    var body: some View {
        GeometryReader(content: { geometry in
            VStack{
                Spacer()
                    .frame(height: 200)
                Image("icon_icon")
                    .resizable()
                    .frame(width: 94,height: 103)
                Spacer()
                    .frame(height: 43)
                Text("Chat Up")
                    .font(.system(size: 32,weight: .bold))
                Spacer()
                VStack{
                    Text(String.i18nText("powered_by"))
                      .font(Font.system(size: 18))
                      .foregroundColor(.white.opacity(0.7))
                    Spacer()
                        .frame(height: 15)
                    Text(String.i18nText("powered_by_gpt"))
                      .font(Font.system(size: 16))
                      .foregroundColor(Color(red: 0.13, green: 0.82, blue: 0.55))
                      .padding(.horizontal,20)
                      .padding(.vertical, 10)
                      .background(Color(red: 0.13, green: 0.82, blue: 0.55).opacity(0.1))
                      .cornerRadius(30)

                }
                Spacer()
                    .frame(height: 60)
            }
            .frame(width: geometry.size.width)
            .background(Color(red: 0.03, green: 0.06, blue: 0.05))
        })
    }
}

#Preview {
    SplashView()
}
